import { http, toast} from '@/uni_modules/uview-plus'

//getTabbar
export const getTabbar = (params,config={custom:{needLogin:true}}) => http.post('/', params, config)
//getAppUpdate
export const getAppUpdate = (params,config={}) => http.post('/api/version_update', params, config)

// 首页 公告等
export const getHomeIndex = (params,config={}) => http.post('/api/index', params, config)
// 首页 商品
export const getHomeGoods = (params,config={}) => http.post('/api/goods', params, config)
// 首页 兑换码
export const cdk_exchange = (params,config={custom:{needLogin:true}}) => http.post('/api/cdk_exchange', params, config)
// 首页 兑换码结果
export const coupon_info = (params,config={custom:{needLogin:true}}) => http.post('/api/coupon_info', params, config)
// 首页 每日优惠券
export const get_login_coupon = (params,config={custom:{needLogin:true}}) => http.post('/api/get_login_coupon', params, config)
// 首页 每日优惠券 领取
export const receive_login_coupon = (params,config={custom:{needLogin:true}}) => http.post('/api/receive_login_coupon', params, config)


// 登录
export const mobile_login = (params,config={}) => http.post('/api/mobile_login', params, config)
// 登录 获取验证码
export const send_sms = (params,config={}) => http.post('/api/send_sms', params, config)
// 我的 用户信息
export const get_user = (params,config={custom:{needLogin:true}}) => http.post('/api/user', params, config)
// 我的 领取任务奖励
export const ling_task = (params,config={custom:{needLogin:true}}) => http.post('/api/ling_task', params, config)
// 我的 精气精粹
export const profitIntegral = (params,config={custom:{needLogin:true}}) => http.post('/api/profitIntegral', params, config)
// 我的 精气记录
export const profitScore = (params,config={custom:{needLogin:true}}) => http.post('/api/profitScore', params, config)
// 我的 编辑资料
export const update_userinfo = (params,config={custom:{needLogin:true}}) => http.post('/api/update_userinfo', params, config)
// 我的 实名认证
export const real_name = (params,config={custom:{needLogin:true}}) => http.post('/api/real_name', params, config)


// 精气赏 详情
export const goodsdetail = (params,config={custom:{needLogin:true}}) => http.post('/api/goodsdetail', params, config)
// 精气赏 中赏记录
export const shang_log = (params,config={custom:{needLogin:true}}) => http.post('/api/shang_log', params, config)
// 精气赏 换箱tabs
export const goodslist_count = (params,config={custom:{needLogin:true}}) => http.post('/api/goodslist_count', params, config)
// 精气赏 换箱列表
export const goodslist_content = (params,config={custom:{needLogin:true}}) => http.post('/api/goodslist_content', params, config)
// 精气赏 下单
export const ordermoney = (params,config={custom:{needLogin:true}}) => http.post('/api/ordermoney', params, config)
// 精气赏 下单
export const orderbuy = (params,config={custom:{needLogin:true}}) => http.post('/api/orderbuy', params, config)



// 富文本 协议等
export const get_parse = (params,config={}) => http.post('/api/danye', params, config)
// 注销
export const user_logoff = (params,config={custom:{needLogin:true}}) => http.post('/api/user_logoff', params, config)
// 消费记录
export const profitPay = (params,config={custom:{needLogin:true}}) => http.post('/api/profitPay', params, config)
// 我的收藏
export const listCollect = (params,config={custom:{needLogin:true}}) => http.post('/api/listCollect', params, config)
// 任务列表
export const task_list = (params,config={custom:{needLogin:true}}) => http.post('/api/task_list', params, config)
// VIP 签到信息
export const vip_sign_info = (params,config={custom:{needLogin:true}}) => http.post('/api/vip_sign_info', params, config)
// VIP 签到
export const vip_sign = (params,config={custom:{needLogin:true}}) => http.post('/api/vip_sign', params, config)
// VIP 优惠券
export const coupon_vip_list = (params,config={custom:{needLogin:true}}) => http.post('/api/coupon_vip_list', params, config)
// VIP 优惠券领取
export const receive = (params,config={custom:{needLogin:true}}) => http.post('/api/receive', params, config)
// VIP 每月福利
export const level_award = (params,config={custom:{needLogin:true}}) => http.post('/api/level_award', params, config)
// VIP 每月福利领取
export const receive_award = (params,config={custom:{needLogin:true}}) => http.post('/api/receive_award', params, config)
// VIP 会员中心
export const vip_list = (params,config={custom:{needLogin:true}}) => http.post('/api/vip_list', params, config)
// 口令 领取
export const receive_red_envelope = (params,config={custom:{needLogin:true}}) => http.post('/api/receive_red_envelope', params, config)
// 口令 生成口令
export const new_red_envelope = (params,config={custom:{needLogin:true}}) => http.post('/api/new_red_envelope', params, config)
// 口令 记录
export const red_envelope_list = (params,config={custom:{needLogin:true}}) => http.post('/api/red_envelope_list', params, config)
// 口令 详情
export const red_envelope_detail = (params,config={custom:{needLogin:true}}) => http.post('/api/red_envelope_detail', params, config)
// 福利屋 列表
export const welfare = (params,config={}) => http.post('/api/welfare', params, config)
// 福利屋 中赏历史记录
export const room_open_record = (params,config={}) => http.post('/api/room_open_record', params, config)
// 福利屋 参与历史记录
export const join_record = (params,config={}) => http.post('/api/join_record', params, config)
// 福利屋 详情
export const detail_room = (params,config={}) => http.post('/api/detail_room', params, config)
// 福利屋 加入
export const join_room = (params,config={custom:{needLogin:true}}) => http.post('/api/join_room', params, config)
// 福利屋 创建
export const add_room = (params,config={custom:{needLogin:true}}) => http.post('/api/add_room', params, config)
// 福利屋 创建记录
export const my_room = (params,config={custom:{needLogin:true}}) => http.post('/api/my_room', params, config)
// 订单 赏品 列表
export const warehouse_send_record = (params,config={custom:{needLogin:true}}) => http.post('/api/warehouse_send_record', params, config)
// 订单 赏品 详情
export const warehouse_send_record_detail = (params,config={custom:{needLogin:true}}) => http.post('/api/warehouse_send_record_detail', params, config)
// 订单 赏品 物流
export const warehouse_order_logistics = (params,config={custom:{needLogin:true}}) => http.post('/api/warehouse_order_logistics', params, config)
// 订单 赏品 确认收货
export const warehouse_send_confirm = (params,config={custom:{needLogin:true}}) => http.post('/api/warehouse_send_confirm', params, config)

// 订单 商城 列表
export const seckill_order_list = (params,config={custom:{needLogin:true}}) => http.post('/api/seckill_order_list', params, config)
// 订单 商城 详情
export const seckill_order_detail = (params,config={custom:{needLogin:true}}) => http.post('/api/seckill_order_detail', params, config)
// 订单 商城 物流
export const seckill_order_logistics = (params,config={custom:{needLogin:true}}) => http.post('/api/seckill_order_logistics', params, config)
// 订单 商城 确认收货
export const seckill_order_confirm = (params,config={custom:{needLogin:true}}) => http.post('/api/seckill_order_confirm', params, config)


// 商城 商品列表
export const shop_seckill_product = (params,config={custom:{needLogin:true}}) => http.post('/api/shop_seckill_product', params, config)
// 商城 商品详情
export const shop_goods_detail = (params,config={custom:{needLogin:true}}) => http.post('/api/shop_goods_detail', params, config)
// 商城 商品下单
export const shop_goods_browse = (params,config={custom:{needLogin:true}}) => http.post('/api/shop_goods_browse', params, config)
// 商城 商品购买
export const shop_order_buy = (params,config={custom:{needLogin:true}}) => http.post('/api/shop_order_buy', params, config)
// 商城 优惠券列表
export const coupon_integral = (params,config={custom:{needLogin:true}}) => http.post('/api/coupon_integral', params, config)
// 商城 优惠券购买
export const pay_coupon = (params,config={custom:{needLogin:true}}) => http.post('/api/pay_coupon', params, config)
// 商城 优惠券 可用列表
export const used = (params,config={custom:{needLogin:true}}) => http.post('/api/used', params, config)


// 地址 列表
export const address_list = (params,config={custom:{needLogin:true}}) => http.post('/api/address_list', params, config)
// 地址 删除
export const address_del = (params,config={custom:{needLogin:true}}) => http.post('/api/address_del', params, config)
// 地址 新增
export const address_add = (params,config={custom:{needLogin:true}}) => http.post('/api/address_add', params, config)
// 地址 编辑
export const address_edit = (params,config={custom:{needLogin:true}}) => http.post('/api/address_edit', params, config)



// 仓库 赏品列表
export const warehouse_index = (params,config={custom:{needLogin:true}}) => http.post('/api/warehouse_index', params, config)
// 仓库 上锁
export const warehouse_movein = (params,config={custom:{needLogin:true}}) => http.post('/api/warehouse_movein', params, config)
// 仓库 解锁
export const warehouse_remove = (params,config={custom:{needLogin:true}}) => http.post('/api/warehouse_remove', params, config)
// 仓库 转赠 目标信息
export const user_verify = (params,config={custom:{needLogin:true}}) => http.post('/api/user_verify', params, config)
// 仓库 转赠 确认
export const gift_goods = (params,config={custom:{needLogin:true}}) => http.post('/api/gift_goods', params, config)
// 仓库 提货 信息
export const warehouse_send_brow = (params,config={custom:{needLogin:true}}) => http.post('/api/warehouse_send_brow', params, config)
// 仓库 提货 支付
export const warehouse_send = (params,config={custom:{needLogin:true}}) => http.post('/api/warehouse_send', params, config)



// 抽卡机 类型列表
export const cardextractor_index = (params,config={custom:{needLogin:true}}) => http.post('/api/cardextractor_index', params, config)
// 抽卡机 商品列表
export const cardextractor_goods = (params,config={custom:{needLogin:true}}) => http.post('/api/cardextractor_goods', params, config)
// 抽卡机 商品详情
export const cardextractor_goodsdetail = (params,config={custom:{needLogin:true}}) => http.post('/api/cardextractor_goodsdetail', params, config)
// 抽卡机 抽卡记录
export const cardextractor_shang_log = (params,config={custom:{needLogin:true}}) => http.post('/api/cardextractor_shang_log', params, config)
// 抽卡机 图鉴
export const cardextractor_goodslist_log = (params,config={custom:{needLogin:true}}) => http.post('/api/cardextractor_goodslist_log', params, config)
// 抽卡机 下单
export const cardextractor_ordermoney = (params,config={custom:{needLogin:true}}) => http.post('/api/cardextractor_ordermoney', params, config)
// 抽卡机 支付
export const cardextractor_orderbuy = (params,config={custom:{needLogin:true}}) => http.post('/api/cardextractor_orderbuy', params, config)
// 抽卡机 支付回调
export const cardextractor_prizeorderlog = (params,config={custom:{needLogin:true}}) => http.post('/api/cardextractor_prizeorderlog', params, config)



// 无限赏 赏品详情
export const infinite_goodsdetail = (params,config={custom:{needLogin:true}}) => http.post('/api/infinite_goodsdetail', params, config)
// 无限赏 中赏记录
export const infinite_shang_log = (params,config={custom:{needLogin:true}}) => http.post('/api/infinite_shang_log', params, config)
// 无限赏 收藏
export const addCollect = (params,config={custom:{needLogin:true}}) => http.post('/api/addCollect', params, config)
// 无限赏 取消收藏
export const delCollect = (params,config={custom:{needLogin:true}}) => http.post('/api/delCollect', params, config)
// 无限赏 历史获奖名单
export const get_purse_list = (params,config={custom:{needLogin:true}}) => http.post('/api/get_purse_list', params, config)



// 团队 状态
export const extension = (params,config={custom:{needLogin:true}}) => http.post('/api/extension', params, config)
// 团队 信息
export const team = (params,config={custom:{needLogin:true}}) => http.post('/api/team', params, config)
// 团队 邀请码
export const cdk_add = (params,config={custom:{needLogin:true}}) => http.post('/api/cdk_add', params, config)
// 团队 海报
export const share_app = (params,config={custom:{needLogin:true}}) => http.post('/api/share_app', params, config)
// 团队 提现
export const withdraw = (params,config={custom:{needLogin:true}}) => http.post('/api/withdraw', params, config)
// 团队 申请
export const apply_extension = (params,config={custom:{needLogin:true}}) => http.post('/api/apply_extension', params, config)

// 许愿合成 列表
export const wish_list = (params,config={custom:{needLogin:true}}) => http.post('/api/wish_list', params, config)
// 许愿合成 仓库
export const get_warehouse = (params,config={custom:{needLogin:true}}) => http.post('/api/get_warehouse', params, config)
// 许愿合成 合成
export const wish_order_add = (params,config={custom:{needLogin:true}}) => http.post('/api/wish_order_add', params, config)
// 许愿合成 合成记录
export const wish_record = (params,config={custom:{needLogin:true}}) => http.post('/api/wish_record', params, config)


// 获取系统支付方式
export const index = (params,config={custom:{needLogin:true}}) => http.post('/api/index', params, config)
// 订单 获取预订单
export const infinite_ordermoney = (params,config={custom:{needLogin:true}}) => http.post('/api/infinite_ordermoney', params, config)
// 订单 创建订单
export const infinite_orderbuy = (params,config={custom:{needLogin:true}}) => http.post('/api/infinite_orderbuy', params, config)
// 订单 支付回调
export const infinite_prizeorderlog = (params,config={custom:{needLogin:true}}) => http.post('/api/infinite_prizeorderlog', params, config)
// 订单 特奖信息
export const check_purse_goods = (params,config={custom:{needLogin:true}}) => http.post('/api/check_purse_goods', params, config)

// 订单 充值
export const recharge = (params,config={custom:{needLogin:true}}) => http.post('/api/recharge', params, config)




